<template>
  <el-card class="stat-card">
    <div class="stat-content">
      <div class="stat-number">{{ number }}</div>
      <div class="stat-label">{{ label }}</div>
    </div>
    <div class="stat-icon" :style="{ color: color }">
      <i :class="['fas', icon]"></i>
    </div>
  </el-card>
</template>

<script>
export default {
  name: 'StatsCard',
  props: {
    number: {
      type: [String, Number],
      required: true
    },
    label: {
      type: String,
      required: true
    },
    icon: {
      type: String,
      required: true
    },
    color: {
      type: String,
      required: true
    }
  }
};
</script>

<style scoped>
.stat-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(8, 8, 8, 0.15);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-content {
  padding: 16px;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1f2329;
}

.stat-label {
  font-size: 14px;
  color: #6b7280;
}

.stat-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 32px;
}
</style>
